package com.donzell.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * EcsUserBonus entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ecs_user_bonus")
public class EcsUserBonus implements java.io.Serializable {

	// Fields

	private Integer bonusId;
	private Short bonusTypeId;
	private Long bonusSn;
	private Integer userId;
	private Integer usedTime;
	private Integer orderId;
	private Short emailed;

	// Constructors

	/** default constructor */
	public EcsUserBonus() {
	}

	/** full constructor */
	public EcsUserBonus(Short bonusTypeId, Long bonusSn, Integer userId, Integer usedTime, Integer orderId,
			Short emailed) {
		this.bonusTypeId = bonusTypeId;
		this.bonusSn = bonusSn;
		this.userId = userId;
		this.usedTime = usedTime;
		this.orderId = orderId;
		this.emailed = emailed;
	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "SHOP_IDENTIFIER_IDENT_ID_GENERATOR", sequenceName = "SHOP_ID_SEQUENCE", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SHOP_IDENTIFIER_IDENT_ID_GENERATOR")
	@Column(name = "bonus_id", unique = true, nullable = false)
	public Integer getBonusId() {
		return this.bonusId;
	}

	public void setBonusId(Integer bonusId) {
		this.bonusId = bonusId;
	}

	@Column(name = "bonus_type_id", nullable = false)
	public Short getBonusTypeId() {
		return this.bonusTypeId;
	}

	public void setBonusTypeId(Short bonusTypeId) {
		this.bonusTypeId = bonusTypeId;
	}

	@Column(name = "bonus_sn", nullable = false)
	public Long getBonusSn() {
		return this.bonusSn;
	}

	public void setBonusSn(Long bonusSn) {
		this.bonusSn = bonusSn;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "used_time", nullable = false)
	public Integer getUsedTime() {
		return this.usedTime;
	}

	public void setUsedTime(Integer usedTime) {
		this.usedTime = usedTime;
	}

	@Column(name = "order_id", nullable = false)
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "emailed", nullable = false)
	public Short getEmailed() {
		return this.emailed;
	}

	public void setEmailed(Short emailed) {
		this.emailed = emailed;
	}

}